import request from '@/utils/request'


// 订单列表
export function orderPubList(data) {
	return request({
		url: `/mall/pub/manager/order/list`,
		method: 'post',
		data: data
	})
}
// 订单详情
export function order_detail(data) {
	return request({
		url: `/mall/pub/manager/order/order_detail?orderNo=${data.orderNo}`,
		method: 'get',
		data: data
	})
}
// 打印小票
export function orderPrintSealTicket(data) {
	return request({
		url: `/mall/pub/manager/order/print`,
		method: 'post',
		params: data
	})
}

// 订单取消
export function cancel(data) {
	return request({
		url: '/mall/pub/manager/order/cancel',
		method: 'post',
		data: data
	})
}
// 订单退款
export function refund(data) {
	return request({
		url: '/mall/pub/manager/order/refund',
		method: 'post',
		data: data
	})
}
// 订单配送
export function delivery(data) {
	return request({
		url: `mall/pub/manager/order/delivery?orderNo=${data.orderNo}`,
		method: 'post',
		data: data
	})
}
// 订单送达
export function delivered(data) {
	return request({
		url: `/mall/pub/manager/order/delivered?orderNo=${data.orderNo}`,
		method: 'post',
		data: data
	})
}
// 订单核销
export function writeOff(data) {
	return request({
		url: `/mall/pub/manager/order/writeOff`,
		method: 'post',
		data: data
	})
}
// 设置订单备注
export function pubOrderRemark(data) {
	return request({
		url: 'mall/pub/manager/order/remark',
		method: 'post',
		data: data
	})
}

